package com.cole.gx095.Repository;

import com.cole.gx095.entity.Admininfo;
import com.cole.gx095.entity.Salecontract;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface AdmininfoRepository extends JpaRepository<Admininfo,Integer>, JpaSpecificationExecutor<Admininfo> {
    @Query(value = "select * from admininfo a where a.adminName=?1",nativeQuery = true)
    Admininfo findByAdminName(String adminName);

}
